import React from 'react';
import { useLocation } from 'react-router-dom';


function NoMatch() {
  let location  = useLocation();

  return(
    <>
    <div style={{ backgroundColor: '#F5F5F5', height: '100%' , textAlign:"center" }}>
      <h1>{location.pathname} 该页面不存在</h1>
    </div>
    </>
  )
}

 
export default NoMatch;